package com.jxdinfo.hussar.example.common.schedulingtask.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jxdinfo.hussar.authorization.organ.model.SysOrgan;
import com.jxdinfo.hussar.example.common.schedulingtask.model.SysOrganMes;
import com.jxdinfo.hussar.example.common.schedulingtask.model.SysStaffMes;
import com.jxdinfo.hussar.example.common.schedulingtask.model.SysStruMes;
import com.jxdinfo.hussar.example.common.schedulingtask.model.SysUsersMes;
import com.jxdinfo.hussar.support.datasource.annotations.HussarDs;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 架构表表 Mapper 接口
 * </p>
 *
 * @author 乔镔
 * @since 2024-04-15
 */
@Mapper
@Repository("com.jxdinfo.hussar.example.common.schedulingtask.dao.SysUsersMapper")
public interface SysUsersMesMapper extends BaseMapper<SysUsersMes> {

    //erp获取所有用户插入员工
    @HussarDs("U9C")
    List<SysOrganMes> selectAllSysUsers();

    //检查是否存在此员工
    SysOrganMes selectSysOrgan(SysOrganMes sysOrganMes);

    //员工插入sysOrgan表
    int insertSysOrgan(SysOrganMes sysOrganMes);
    //员工插入sysStru表
    int insertSysStru(SysStruMes sysStruMes);
    //员工插入sysStaff表
    int insertSysStaff(SysStaffMes sysStaffMes);


    //erp获取所有用户插入用户
    @HussarDs("U9C")
    List<SysUsersMes> selectAllSysUser();

    SysUsersMes selectSysUsers(SysUsersMes sysUserMes);

    //插入登录用户
    int insertSysUsers(SysUsersMes sysUserMes);
    //跟新登录用户（已不用）
    int updateSysUsers(SysUsersMes sysUserMes);
    //插入登录用户
    int insertSysUserTenant(SysUsersMes sysUserMes);




}
